package com.tjmc.recruit.finance.api.feign;

import com.tjmc.recruit.common.core.constant.SecurityConstants;
import com.tjmc.recruit.common.core.constant.ServiceNameConstants;
import com.tjmc.recruit.common.core.util.R;
import com.tjmc.recruit.finance.api.dto.AccountChangeDTO;
import com.tjmc.recruit.finance.api.entity.PlatformUserAccountEntity;
import com.tjmc.recruit.finance.api.vo.MemberInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "memberInfoService", value = ServiceNameConstants.FINANCE_SERVICE)
public interface MemberInfoService {

    /**
     * 查询会员信息及权益
     *
     * @param accountId 用户ID
     * @param from
     * @return
     */
    @GetMapping("/memberInfo/accountId")
    R<MemberInfoVO> getAccountInfo(@RequestParam("accountId") Long accountId, @RequestHeader(SecurityConstants.FROM) String from);
}
